﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace bensonplantrescue.org
{
    public partial class Volunteers : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSubmit_Click(object sender, EventArgs e)
        {

            bp.BusinessLogic.Mail mail = new bp.BusinessLogic.Mail();
            //Confirmation page that will be sent to the user
            string msg = mail.SendMail(Server.MapPath("ContactConfirmation.html"), "mail.bpwe.net", "bensonplantrescue@cox.net", dfsEmail.Text,
                                      "root@bpwe.net", "Nv4c7df7", "Thank You For Supporting Benson Plant Rescue", dfsName.Text, "",
                                      "", Guid.NewGuid(), "", "", "");



            //notification page
            mail.SendMail(Server.MapPath("ContactNotification.html"), "mail.bpwe.net", dfsEmail.Text, "bensonplantrescue@cox.net",
            "root@bpwe.net", "Nv4c7df7", "Volunteers", "Benson Plant Rescue", "",


           dfsName.Text + "<br/>" + "Email Address" + dfsEmail.Text + "<br/>" +  "Phone Number:" + dfsPhone.Text + " Available Hours: " + dfsHours.Text + "<br/>" + "Available Days:" + dfsDays.Text , Guid.NewGuid(), "", "", "");
            
            
            
            Response.Redirect("thanks.aspx");
        }

       
    }
}